﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("T_User")]
    public class User:BaseEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(60)]
        public string UserName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        [MaxLength(60)]
        public string RealName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(60)]
        public string Pwd { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [MaxLength(500)]
        public string HeadShot { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 性别：1-男；2-女
        /// </summary>
        public int? Gender { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [MaxLength(11)]
        public string MobilePhone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [MaxLength(60)]
        public string Email { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(50)]
        public string Remark { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        [MaxLength(60)]
        public string JobNo { get; set; }
       
        /// <summary>
        /// 部门Id
        /// </summary>
        public int? DepartmentId { get; set; }
        public bool? IsSeeOnlySelfData { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        [NotMapped]
        public string RoleIds { get; set; }
        [NotMapped]
        public string Token { get; set; }

        [NotMapped]
        /// <summary>
        /// 拣选名称
        /// </summary>
        public string SelectPositionName { get; set; }

        [NotMapped]
        /// <summary>
        /// 拣选编码
        /// </summary>
        public string SelectPositionCode { get; set; }
    }
}
